Skip to content

[18.0][MIG] fieldservice_agreement: Migration to 18.0#1368

Merged
OCA-git-bot merged 44 commits intoOCA:18.0from
akretion:18.0-mig-fieldservice_agreement
Aug 14, 2025
Merged

[18.0][MIG] fieldservice_agreement: Migration to 18.0#1368
OCA-git-bot merged 44 commits intoOCA:18.0from
akretion:18.0-mig-fieldservice_agreement

Conversation

@TB-Ph35
Copy link
Copy Markdown

@TB-Ph35 TB-Ph35 commented Apr 3, 2025

No description provided.

Copy link
Copy Markdown
Contributor

@BhaveshHeliconia BhaveshHeliconia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional test

Copy link
Copy Markdown
Contributor

@ivantodorovich ivantodorovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG, thanks a lot for the work done!

Here are a few suggested changes to improve the UX and modernize the code. Would be great if you can check them out

name="action_view_service_order"
type="object"
class="oe_stat_button"
icon="fa-map"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
icon="fa-map"
icon="fa-map"
invisible="service_order_count == 0"

UX: to be aligned with similar things in Odoo core
https://github.com/odoo/odoo/blob/eef507abe3853f6844fdd7b7bfbc3ff9bedf76ae/addons/purchase/views/purchase_views.xml#L167

Comment on lines +28 to +37
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
<field
name="equipment_count"
widget="statinfo"
nolabel="1"
/>
</span>
<span class="o_stat_text">Equipments</span>
</div>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
<field
name="equipment_count"
widget="statinfo"
nolabel="1"
/>
</span>
<span class="o_stat_text">Equipments</span>
</div>
<field
name="equipment_count"
widget="statinfo"
string="Service Orders"
/>

let's take the opportunity to modernize this code

name="action_view_fsm_equipment"
type="object"
class="oe_stat_button"
icon="fa-laptop"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
icon="fa-laptop"
icon="fa-laptop"
invisible="equipment_count == 0"

UX: to be aligned with similar things in Odoo core
https://github.com/odoo/odoo/blob/eef507abe3853f6844fdd7b7bfbc3ff9bedf76ae/addons/purchase/views/purchase_views.xml#L167

type="object"
name="action_view_agreements"
class="oe_stat_button"
icon="fa-folder"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
icon="fa-folder"
icon="fa-folder"
invisible="agreement_count == 0"

UX: to be aligned with similar things in Odoo core
https://github.com/odoo/odoo/blob/eef507abe3853f6844fdd7b7bfbc3ff9bedf76ae/addons/purchase/views/purchase_views.xml#L167

@imlopes
Copy link
Copy Markdown
Contributor

imlopes commented Aug 13, 2025

@TB-Ph35 can you check the suggestion from @ivantodorovich ?

@rousseldenis can you check this PR too ? 🙏 💚

Bhavesh Odedra and others added 24 commits August 13, 2025 23:22
[UPD] README.rst
* [IMP] fieldservice_agreement

[UPD] README.rst
… move views to agreement module 3. improve location heirarchy name construction
[IMP] fieldservice_vehicle_stock
[UPD] Update fieldservice_agreement.pot

Added translation using Weblate (Portuguese (Brazil))

Added translation using Weblate (Spanish (Chile))

Translated using Weblate (Spanish (Chile))

Currently translated at 100.0% (15 of 15 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_agreement/es_CL/

Added translation using Weblate (German)

Translated using Weblate (German)

Currently translated at 6.7% (1 of 15 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_agreement/de/

Translated using Weblate (German)

Currently translated at 26.7% (4 of 15 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_agreement/de/

Translated using Weblate (German)

Currently translated at 100.0% (15 of 15 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_agreement/de/

[ADD] Spanish (es) translation

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (15 of 15 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_agreement/pt_BR/

Translated using Weblate (Spanish)

Currently translated at 100.0% (15 of 15 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_agreement/es/

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (15 of 15 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_agreement/pt_BR/

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (15 of 15 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_agreement/pt_BR/

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (15 of 15 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_agreement/pt_BR/

Added translation using Weblate (Spanish (Argentina))

Translated using Weblate (Spanish (Argentina))

Currently translated at 100.0% (15 of 15 strings)

Translation: field-service-12.0/field-service-12.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_agreement/es_AR/
mymage and others added 13 commits August 13, 2025 23:22
Currently translated at 100.0% (19 of 19 strings)

Translation: field-service-14.0/field-service-14.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-14-0/field-service-14-0-fieldservice_agreement/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: field-service-14.0/field-service-14.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-14-0/field-service-14-0-fieldservice_agreement/
Currently translated at 100.0% (19 of 19 strings)

Translation: field-service-14.0/field-service-14.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-14-0/field-service-14-0-fieldservice_agreement/es_AR/
The `agreement_serviceprofile` dependency has been moved to a
glue module `fieldservice_agreement_serviceprofile`.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: field-service-17.0/field-service-17.0-fieldservice_agreement
Translate-URL: https://translation.odoo-community.org/projects/field-service-17-0/field-service-17-0-fieldservice_agreement/
@TB-Ph35 TB-Ph35 force-pushed the 18.0-mig-fieldservice_agreement branch from 1b9f1d9 to 1159b5d Compare August 13, 2025 21:27
Copy link
Copy Markdown
Contributor

@ivantodorovich ivantodorovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG. Thanks!

Tests are failing due to #1378 (comment)

Not really related to this module.

Should be solved by restarting a new build, normally

@ivantodorovich
Copy link
Copy Markdown
Contributor

@OCA/field-service-maintainers can we merge this one? 🙏🏻

Copy link
Copy Markdown
Contributor

@brian10048 brian10048 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-1368-by-brian10048-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Aug 14, 2025
Signed-off-by brian10048
@OCA-git-bot
Copy link
Copy Markdown
Contributor

@brian10048 your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-1368-by-brian10048-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@brian10048
Copy link
Copy Markdown
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-1368-by-brian10048-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 762f916 into OCA:18.0 Aug 14, 2025
3 of 5 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 2ccf803. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.